#include "Buzzer.h"

void Buzzer_Short(void)
{	
	DL_GPIO_clearPins(Buzzer_PORT,Buzzer_PIN_1_PIN);
	delay_cycles(2000000);
	DL_GPIO_setPins(Buzzer_PORT,Buzzer_PIN_1_PIN);
	delay_cycles(2000000);
}
void Buzzer_Long(void)
{
	DL_GPIO_clearPins(Buzzer_PORT,Buzzer_PIN_1_PIN);
	DL_GPIO_clearPins(LED_PORT,LED_PIN_0_PIN);
	delay_cycles(5000000);
	DL_GPIO_setPins(Buzzer_PORT,Buzzer_PIN_1_PIN);
	DL_GPIO_setPins(LED_PORT,LED_PIN_0_PIN);
}

void Buzzer(uint8_t val)
{
	for(uint8_t i = 0;i < val;i++)
	{
		Buzzer_Short();
	}
}


